#include <stdio.h>
#include <stdlib.h>
#include "Common.h"

int main() {
	int i;
	TUserInfo* rootUser = NULL;
	printf("begin testing!\n");
		
	for(i = 0; i < 10; ++i) {
		addUser(rootUser, i, &rootUser);
	}

	i = 0;
	while(rootUser != NULL) {
		if(find(rootUser, i, &rootUser))
			printf("%d\n", rootUser->id);
		else
			printf("not find\n");

		deleteUser(rootUser, i, &rootUser);
		++i;
	}

	if(rootUser == NULL) {
		printf("good");
	}
		
	return 0;
}